package com.SmartCare.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 账单信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账单编号;
     */
    @TableId(value = "bill_id", type = IdType.ASSIGN_ID)
    private Long billId;

    /**
     * 消费金额
     */
    private Float amount;

    /**
     * 老人编号
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 消费时间
     */
    private String spendTime;

    /**
     * 消费备注
     */
    private String detail;

    /**
     * 创建时间
     */
    private Date createdTime;


}
